package com.example.mylibrarybase.yumengmeng12.ui;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.mylibrarybase.R;
import com.example.mylibrarybase.bar.initAction_Bar;
import com.example.mylibrarybase.base.baseui.BaseActivity;
import com.example.mylibrarybase.yumengmeng12.adapter.itemRecyclerview;
import com.example.mylibrarybase.yumengmeng12.bean.item_json;
import com.example.mylibrarybase.yumengmeng12.utils.UtilsSetManager;
import com.example.mylibrarybase.yumengmeng12.view.Myrecyclerview_12;


public class MainActivity_recyclerview_12 extends BaseActivity {

    private Myrecyclerview_12 mMyrecyclerview_12_rc;
    private initAction_Bar mBase_action_bar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
    }

    @Override
    public int getlayouXML() {
        return R.layout.activity_main_recyclerview_12;
    }

    @Override
    public void initView() {
        mBase_action_bar = (initAction_Bar) findViewById(R.id.base_action_bar);
        mBase_action_bar.setMode(initAction_Bar.AUTO_ONCLICK_MODE)
                .setCallBack(new initAction_Bar.Action_bar_call_back() {
                    @Override
                    public void getAction_barView_backbutton(TextView textView) {

                    }

                    @Override
                    public void getAction_barView_backbutton_icon(ImageView imageView) {

                    }

                    @Override
                    public void getAction_barView_title(TextView textView) {
                        textView.setText("卡片布局");
                    }

                    @Override
                    public void getAction_barView_right_icon(ImageView imageView) {

                    }
                });

//        paths.add(new Banner_01("http://pic.yesky.com/uploadImages/2015/026/38/MG734XC8AM7T.jpg"));
//        paths.add(new Banner_01("http://www.gamemei.com/background/uploads/160829/30-160R9143H3343.jpg"));
//        paths.add(new Banner_01("http://www.gamemei.com/background/uploads/160829/30-160R9143612P5.jpg"));
//        paths.add(new Banner_01("http://img3.duitang.com/uploads/item/201608/20/20160820091508_diTXf.thumb.700_0.jpeg"));
//        paths.add(new Banner_01("http://joymepic.joyme.com/article/uploads/allimg/201609/1473906749455425.jpg?watermark/1/image/aHR0cDovL2pveW1lcGljLmpveW1lLmNvbS9hcnRpY2xlL3VwbG9hZHMvMTYwODE5LzgwLTE2MFE5MUZaMzQzOC5wbmc=/dissolve/70"));
        mMyrecyclerview_12_rc = (Myrecyclerview_12) findViewById(R.id.Myrecyclerview_12_rc);
        UtilsSetManager.LinearLayoutManager(this, RecyclerView.VERTICAL,mMyrecyclerview_12_rc);
        String url0 ="http://h.hiphotos.baidu.com/baike/w%3D268%3Bg%3D0/sign=560bd84239c79f3d8fe1e336829aaa2c/6a63f6246b600c3318724375184c510fd9f9a100.jpg";
        String url1 ="http://pic.yesky.com/uploadImages/2015/026/38/MG734XC8AM7T.jpg";
        String url2 ="http://www.gamemei.com/background/uploads/160829/30-160R9143H3343.jpg";
        String url3 ="http://www.gamemei.com/background/uploads/160829/30-160R9143612P5.jpg";
        String url4 ="https://img.alicdn.com/imgextra/i3/679481884/TB2VHzLafSM.eBjSZFNXXbgYpXa_!!679481884.jpg_430x430q90.jpg";
        String url5 ="http://img3.duitang.com/uploads/item/201608/20/20160820091508_diTXf.thumb.700_0.jpeg";
        String url6 ="http://joymepic.joyme.com/article/uploads/allimg/201609/1473906749455425.jpg?watermark/1/image/aHR0cDovL2pveW1lcGljLmpveW1lLmNvbS9hcnRpY2xlL3VwbG9hZHMvMTYwODE5LzgwLTE2MFE5MUZaMzQzOC5wbmc=/dissolve/70";
        String url7 ="http://d.hiphotos.baidu.com/image/pic/item/0ff41bd5ad6eddc492d491153ddbb6fd52663328.jpg";

        item_json item_json = new item_json("地领个", "1", "2", "3", "4", "5", "6", "7",url0,url1,url2,url3,url4, url5, url6, url7);
        itemRecyclerview itemRecyclerview = new itemRecyclerview(this, 8, item_json);
        mMyrecyclerview_12_rc.setAdapter(itemRecyclerview);

    }

    @Override
    public void initData() {

    }


}
